//
//  TRProductDetailHeaderView.h
//  WeiMiLan
//
//  Created by anan on 14/11/20.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MJPhoto.h"
#import "MJPhotoBrowser.h"

@class TRProductDetailViewController;

@interface TRProductDetailHeaderView : UIView<UIScrollViewDelegate,UIAlertViewDelegate>

@property(nonatomic,retain) TRProductDetailViewController *viewController;

@property (nonatomic,weak) IBOutlet UITextView *textViewProduct;
@property (nonatomic,weak) IBOutlet UIButton *buttonFollow;
//@property (nonatomic,weak) IBOutlet UIButton *buttonDownLine;
@property (nonatomic,weak) IBOutlet UILabel *labelDesc;
@property (nonatomic,weak) IBOutlet UILabel *labelUserName;
@property (nonatomic,weak) IBOutlet UILabel *labelCommentCount;
@property (nonatomic,weak) IBOutlet UIImageView *imageViewIcon;
@property (nonatomic,weak) IBOutlet UIScrollView *scrollView;
@property (nonatomic,weak) IBOutlet UIScrollView *scrollViewUsers;
@property (nonatomic,weak) IBOutlet UIView *viewBottom;
@property (nonatomic,weak) IBOutlet UIView *viewTop;
@property (nonatomic,weak) IBOutlet UIPageControl *pageControl;

@property (nonatomic,strong) NSDictionary *info;
@property (nonatomic,strong) NSDictionary *userInfo;
@property (nonatomic,strong) NSArray *imgs;
@property (nonatomic,strong) NSMutableArray *imageViews;

- (void)setInfo:(NSDictionary *)info andImgs:(NSArray *)imgs businnessTag:(NSDictionary*)businnessTag;
- (IBAction)buttonConnectSheAction:(id)sender;
- (IBAction)buttonMakeCallAction:(id)sender;

@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *buttons;

@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray *commentAvators;

- (CGFloat)getHeight;

@end
